package com.windfone.service;

import java.util.List;

import com.windfone.model.News;
import com.windfone.model.NewsType;

public interface NewsService {
    public int deleteNews(int keyValue);
    public int getAllRecorderNumber( );
    public int updateNews(News bean);
    public int insertNews(News bean );
    public List<News> getNewsById(int keyValue);
    public List<News> getAllNews(int beginRecord);
    public List<News> getNewsByNewtypeId(int keyValue);
    
    public int deleteNewsType(int keyValue);
    public int updateNewsType(NewsType bean);
    public int insertNewsType(NewsType bean );
    public List<NewsType> getNewsTypeById(int keyValue);
    public List<NewsType> getAllNewsType();
    public int getAllNewsTypeRecorderNumber( );
}
